package com.ruoyi.base.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 系统接口数据对象 SYS_PERMISSION
 * 
 * @author ruoyi
 * @date 2025-08-03
 */
public class SysPermission extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 接口名称 */
    @Excel(name = "接口名称")
    private String name;

    /** 接口地址 */
    @Excel(name = "接口地址")
    private String path;

    /** 数据来源 */
    @Excel(name = "数据来源")
    private String source;

    /** 数据格式 */
    @Excel(name = "数据格式")
    private String datatype;

    /** 是否启用，1是启用0是未启用 */
    @Excel(name = "是否启用，1是启用0是未启用")
    private String isenable;

    /** 描述 */
    @Excel(name = "描述")
    private String apidiscrible;

    @Excel(name = "创建时间")
    private Date createtime;

    /** 申请次数 */
    @Excel(name = "申请次数")
    private Integer applycount;

    /** 访问次数 */
    @Excel(name = "访问次数")
    private Integer visitcount;

    /** 评分 */
    @Excel(name = "评分")
    private Integer score;

    /** 调用次数 */
    @Excel(name = "调用次数")
    private Integer callcount;

    /** 评分 */
    @Excel(name = "更新时间")
    private Date updatetime;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setPath(String path) 
    {
        this.path = path;
    }

    public String getPath() 
    {
        return path;
    }

    public void setSource(String source) 
    {
        this.source = source;
    }

    public String getSource() 
    {
        return source;
    }

    public void setDatatype(String datatype) 
    {
        this.datatype = datatype;
    }

    public String getDatatype() 
    {
        return datatype;
    }

    public void setIsenable(String isenable) 
    {
        this.isenable = isenable;
    }

    public String getIsenable() 
    {
        return isenable;
    }

    public void setApidiscrible(String apidiscrible) 
    {
        this.apidiscrible = apidiscrible;
    }

    public String getApidiscrible() 
    {
        return apidiscrible;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public void setApplycount(Integer applycount)
    {
        this.applycount = applycount;
    }

    public Integer getApplycount()
    {
        return applycount;
    }

    public void setVisitcount(Integer visitcount)
    {
        this.visitcount = visitcount;
    }

    public Integer getVisitcount()
    {
        return visitcount;
    }

    public Integer getCallcount() {
        return callcount;
    }

    public void setCallcount(Integer callcount) {
        this.callcount = callcount;
    }

    public void setScore(Integer score)
    {
        this.score = score;
    }

    public Integer getScore()
    {
        return score;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("path", getPath())
            .append("source", getSource())
            .append("datatype", getDatatype())
            .append("isenable", getIsenable())
            .append("apidiscrible", getApidiscrible())
            .append("createtime", getCreatetime())
            .append("applycount", getApplycount())
            .append("visitcount", getVisitcount())
            .append("updatetime", getUpdatetime())
            .append("score", getScore())
            .toString();
    }
}
